#ifndef PATHEDITVIEW_H
#define PATHEDITVIEW_H

#include <QDialog>
#include <QStandardItemModel>

class OneMap;
namespace Ui {
class PathEditView;
}

class PathEditView : public QDialog
{
    Q_OBJECT

public:
    explicit PathEditView(OneMap *oneMapIn,QWidget *parent = 0);
    ~PathEditView();

public slots:
    void showView_slot();

signals:
    void updateMapShow_signal();

private slots:
    void showChooseStation_slot();

private:
    void showStationInfo();

private slots:
    void on_pushButton_setStartAngle_clicked();
    void on_pushButton_setEndAngle_clicked();
    void on_pushButton_setAllSplineTransitionAngleSmooth_clicked();

    void on_pushButton_setNewPathId_clicked();

    void on_pushButton_setAllPathVelocity_clicked();

    void on_pushButton_setAllBarrierMode_clicked();

private:
    int setPathStartAngle(int pathId, double newAngle, double controlRatio);
    int setPathEndAngle(int pathId, double newAngle, double controlRatio);

private:
    Ui::PathEditView *ui;
    QStandardItemModel* model_stationInfo;
    OneMap *oneMap;//地图编辑器的一个map
};

#endif // PATHEDITVIEW_H
